package com.bw.base.utils

import com.blankj.utilcode.util.SPUtils
import okhttp3.Interceptor
import okhttp3.Response

class TokenInterceptor:Interceptor {
    override fun intercept(chain: Interceptor.Chain): Response {
        var token=SPUtils.getInstance().getString("token")
        var request=chain.request().newBuilder().addHeader("Authori-zation",token).build()
        return chain.proceed(request)
    }
}